package com.xzh.testDemo.service.impl;


import com.xzh.spring.AutoWired;
import com.xzh.spring.Component;
import com.xzh.testDemo.service.OrderService;
import com.xzh.testDemo.service.UserService;

@Component(value = "orderService")
public class OrderServiceImpl implements OrderService {
    @AutoWired
    private UserService userService;

    @Override
    public void runOtherClass() {
        System.out.println(userService);
    }

    @Override
    public void test() {
        System.out.println("orderService 的 test()");
//        userService.test();
    }
}
